package com.qt.socket.bigwork;

import java.io.BufferedReader;
import java.io.IOException;

/**
 * @Author zsf
 * @Date 2023/10/6 17:17
 * @Version 1.0
 */
public class ClientRunnable  implements Runnable{

    BufferedReader br;

    public ClientRunnable(BufferedReader br) {
        this.br = br;
    }

    @Override
    public void run() {
        while (true){
            try {
                String msg = br.readLine();
                System.out.println("接收到服务器端消息：" + msg);
            } catch (IOException e) {
                e.printStackTrace();
            }
        }

    }

}
